<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title></title>
        <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
        <link href="../css/system.css" rel="stylesheet" type="text/css">
    </head>
    <body>
        <div id="picPreview" style="position: absolute; z-index:2"></div>
        <form name="myform" method="post" action="">
            <table cellpadding="0" cellspacing="1" class="table_list">
                <caption>查询条件</caption>
                <tr>
                    <td class="align_c">
                        <label>文件名  <input type="text" size="15"></label>
                        <label>文件类型
                        <select>
                            <option value="">所有类型</option>
                            <option value="text">文本</option>
                            <option value="video">视频</option>
                            <option value="audio">音频</option>
                            <option value="application">其他类型</option>
                        </select>
                        </label> &nbsp;&nbsp;
                        <label>日期  <input type="text" size="10"></label> -
                        <input type="text" size="10"> &nbsp;&nbsp;
                        <label>大小(KB)  <input type="text" size="5"></label> > <input type="text" size="5">
                        <input type="submit" class="button_style" name="dosubmit" value="查询">
                    </td>
                </tr>
            </table>
        </form>

        <form name="myform" method="post" action="?mod=phpcms&file=attachment&action=delete">
            <table cellpadding="0" cellspacing="1" class="table_list">
                <caption>附件管理</caption>
                <tr>
                    <th width="40">删除</th>
                    <th>文件名</th>
                    <th width="100">大小</th>
                    <th width="150">上传时间</th>
                </tr>
                {loop $data $r}
                <tr>
                    <td class="align_c"><input type="checkbox" name="aid[6]" value="6" /></td>
                    <td align="left"><a href="{SITE_URL}{UPLOAD_URL}{$r['filepath']}">{$r['filename']}</a></td>
                    <td>{attachment::size($r['filesize'])}</td>
                    <td class="align_c">{date('Y-m-d H:m:s',$r['uploadtime'])}</td>
                </tr>
                {/loop}
            </table>
            <div class="button_box"><a href="###" onClick="javascript:$('input[type=checkbox]').attr('checked', true)">全选</a>/<a href="###" onClick="javascript:$('input[type=checkbox]').attr('checked', false)">取消</a> 	<input name="dosubmit" class="button_style" type="submit" value=" 删除 " /></div>
            <div id="pages">总数：<b>6</b>
                <a href="http://localhost/phpcms/admin.php?mod=phpcms&file=attachment&action=manage&page=1">首页</a>
                <a href="http://localhost/phpcms/admin.php?mod=phpcms&file=attachment&action=manage&page=1">上一页</a><a href="http://localhost/phpcms/admin.php?mod=phpcms&file=attachment&action=manage&page=1">下一页</a><a href="http://localhost/phpcms/admin.php?mod=phpcms&file=attachment&action=manage&page=1">尾页</a>
                页次：<b><font color="red">1</font>/1</b>
                <input type="text" name="page" id="page" size="2" onKeyDown="if(event.keyCode==13) {redirect('http://localhost/phpcms/admin.php?mod=phpcms&file=attachment&action=manage&page='+this.value); return false;}">
                <input type="button" value="GO" class="button_style" onclick="redirect('http://localhost/phpcms/admin.php?mod=phpcms&file=attachment&action=manage&page='+$('#page').val())">
            </div>
        </form>
    </body>
</html>